/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package risk.game.entity.map;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import javax.swing.ImageIcon;

import risk.game.entity.player.Player;

public class Continent extends Region{
 	private static int continentId = 0;
    private List <Land> landList;
    private int reinforcement;

    public Continent (String name,ImageIcon image,Player owner,int reinforcement,List <Land> landList){
    	super(Region.TYPE_CONTINENT,name,image,owner);
        this.id = continentId++;
    	this.reinforcement = reinforcement;
    	this.landList = landList;
    	
    }

	public static int getContinentId() {
		return continentId;
	}

	public static void setContinentId(int continentId) {
		Continent.continentId = continentId;
	}

	public List<Land> getLandList() {
		return landList;
	}

	public void setLandList(List<Land> landList) {
		this.landList = landList;
	}

	public int getReinforcement() {
		return reinforcement;
	}

	public void setReinforcement(int reinforcement) {
		this.reinforcement = reinforcement;
	}

    public void addLand(Land land){
    	if(landList == null)
    		landList = new ArrayList<Land>();
    	landList.add(land);
    }

}
